home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / libs / amigametafile.lha / AmigaMetaFormat / C / libraries / amigametaformat.h
C/C++ Source or Header  |  1997-05-04  |  2KB  |  73 lines

  1. #ifndef LIBRARIES_AMIGAMETAFORMAT_H
  2. #define LIBRARIES_AMIGAMETAFORMAT_H
  3.  
  4. #define AMF_SIZE 0x8000
  5.  
  6. #define MAKE_ID(a,b,c,d)        \
  7.         ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  8.  
  9. /* AMFF IFF identifiers */
  10. #define ID_AMFF         MAKE_ID('A','M','F','F')
  11. #define ID_VERS         MAKE_ID('V','E','R','S')
  12. #define ID_FVER         MAKE_ID('F','V','E','R')
  13. #define ID_HEAD         MAKE_ID('H','E','A','D')
  14. #define ID_BODY         MAKE_ID('B','O','D','Y')
  15.  
  16. /* Outputchannels */
  17. #define AMF_WINDOW 1
  18. #define AMF_STRIP 2
  19. #define AMF_FILE 3
  20. #define AMF_REGION 4
  21. #define AMF_EPS 5
  22. #define AMF_GEM 6
  23. #define AMF_CGM 7
  24. #define AMF_WORDWORTH 8
  25. #define AMF_HPGL 9
  26. #define AMF_DR2D 10
  27. #define AMF_AI 11
  28. #define AMF_WMF 12
  29. #define AMF_JMF 13
  30.  
  31. /* Errorcodes */
  32. #define AMF_NO_ERROR 0
  33. #define AMF_ERROR_NO_MEM 1
  34. #define AMF_ERROR_NOT_SUPPORTED 2
  35. #define AMF_ERROR_WRONG_ARGS 3
  36. #define AMF_ERROR_OTHER 4
  37.  
  38. /* Functions */
  39. #define AMF_CLEAR_REGION 0
  40. #define AMF_LINE 3
  41. #define AMF_TEXT 5
  42. #define AMF_ELLIPSE 6
  43. #define AMF_BOX 7
  44. #define AMF_FILL_ELLIPSE 8
  45. #define AMF_FILL_BOX 9
  46. #define AMF_POLYGON 11
  47. #define AMF_BITMAP_PIC 12
  48. #define AMF_ARC 13
  49. #define AMF_MARK 14
  50. #define AMF_CURVE 15
  51. #define AMF_FILL_POLY 16
  52. #define AMF_ROUNDED 17
  53. #define AMF_PIE 18
  54. #define AMF_FILL_ROUNDED 19
  55. #define AMF_FILL_PIE 20
  56.  
  57. #define AMF_FONT 0x64
  58. #define AMF_SETFGPEN 0x65
  59. #define AMF_SETBGPEN 0x66
  60. #define AMF_SETDRMODE 0x67
  61. #define AMF_SETLINEPAT 0x68
  62. #define AMF_SETLINEWIDTH 0x69
  63. #define AMF_SETFONT 0x6A
  64. #define AMF_SETFILLPAT 0x6B
  65. #define AMF_SETMARKSIZE 0x6C
  66. #define AMF_SETMARKTYPE 0x6D
  67. #define AMF_SETDPI 0x6E
  68.  
  69. #define AMF_GETFONTHEIGHT 0xC8
  70. #define AMF_GETSTRINGLENGHT 0xC9
  71. #define AMF_GETBASELINE 0xCA
  72. #endif   /* LIBRARIES_AMIGAMETAFORMAT_H */
  73.